package com.kai.mapper;

import com.github.pagehelper.Page;
import com.kai.anno.AutoFill;
import com.kai.dto.ExpressOrderQueryDTO;
import com.kai.entity.Comment;
import com.kai.entity.ExpressOrder;
import com.kai.enumeration.AutoFillEnum;
import com.kai.vo.ExpressOrderVO;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ExpressOrderMapper {

    @AutoFill(value = AutoFillEnum.INSERT)
    void addOrder(ExpressOrder expressOrder);

    Page<ExpressOrderVO> getHistoryOrders(ExpressOrderQueryDTO expressOrderQueryDTO);

    @AutoFill(value = AutoFillEnum.UPDATE)
    void cancelOrder(ExpressOrder express);

    void evaluated(Comment comment);
}
